package com.allenyuan.renderobject;

import java.util.ArrayList;
import java.util.List;

import com.allenyuan.render.Renderer;

public class RenderPath extends RenderObject {
	
	private List<RenderPathElement> elements;
	
	public RenderPath() {
		super(RENDER_SHAPE);
		this.elements = new ArrayList<RenderPathElement>();
	}
	
	public void addElement(RenderPathElement element) {
		this.elements.add(element);
	}

	@Override
	public void draw(Renderer r) {
		// TODO Auto-generated method stub
		for (RenderPathElement element : elements) {
			element.draw(r);
		}
	}
}
